'use strict';

const comments = [];

const getRandom = (start, end) => {
  return Math.ceil(Math.random() * (end-start)) + start
}

for (let i = 1; i < 100; i++) {
  const comment = { "id": i, "content": "内容" + i, "likeNum": getRandom(1, 1000) }
  comments.push(comment)
}

module.exports = comments